package com.daiyang.lottery.controller.param;

import lombok.Data;

import java.io.Serializable;
@Data
public class PageListParam implements Serializable {
    /**
     * 当前页
     */
    private Integer currentPage = 1;

    /**
     * 每页中的记录数
     */
    private Integer pageSize = 10;

    public Integer offset() {
        return (currentPage-1)*pageSize;
    }
}
